/*
 * Ext JS Library 2.2
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Ext.onReady(function(){
	
	Ext.QuickTips.init();

    // turn on validation errors beside the field globally
    Ext.form.Field.prototype.msgTarget = 'side';

    var bd = Ext.getBody();

    /*
     * ================  Simple form  =======================
     */
    bd.createChild({tag: 'h2', html: 'Form 1 - Very Simple'});
	
var simpleForm = new Ext.FormPanel({

    labelAlign: 'left',
    title: '表单例子',
    buttonAlign:'right',
    bodyStyle:'padding:5px',
    frame:true,
    labelWidth:80,
	items: [{
		layout:'column',
		border:false,
		items:[
			{
				columnwidth:.5,
				items:[{
                    xtype:'textfield',
					labelStyle:'float:left;padding-top:6px;',
                    fieldLabel: 'First Name',
                    name: 'first'
					}
				]
			}
		]
	}],

	buttons: []

});

simpleForm.render(document.body);


     
});